Executing Shell Scripts with Remote Desktop
Shell scripts can be copied, then executed. If a script has any degree of complexity, or if it cannot be expressed on a single line, you can use Copy Items to copy the script file to the client computers, then execute it using Send UNIX Command. To send a single-line command you can simply use Send UNIX Command.
- Prepare and save your script.
Make sure your script is saved as plain text with UNIX line breaks.
- Open Remote Desktop.
- Select a computer list in the Remote Desktop window.
- Select one or more computers in the selected computer list.
- Use the Copy Items command to copy your script to the client computers.
See Copy Options and Copying from Administrator to Clients for more information.
- After copying the script, choose Manage > Send UNIX Command.
- Execute the script by typing:
- sh script pathname
- Click Send.